<?php

namespace app\index\service;
use think\Db;

class GoodSpec{	
	//瓶中id
	public function goodspec($specid,$id){
		$map["goods_id"] = $id;
		$map["spec_id"] = $specid;
		$rest = Db::table("ys_goods_spec")->where($map)->select();
		return $rest;
	}
	//
	public function getys_goods_spec_name($id){
		$rest = Db::table("ys_goods_spec_name")->where("id",$id)->find();
		return $rest;
	}
}